home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / starship_fly2.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  6.2 KB  |  274 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_STARSHIP_FLY2)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. desc.LocalPosition = D3DXVECTOR3:new(0,0,0)
  9. desc.isAnimateTexture = false
  10. desc.RenderType = ENRENDERTYPE_GEOMETRY
  11.  
  12. Emitter = desc.PS.PSDescription
  13. Emitter.ParticleTypesNumber = 2
  14. Emitter.EmitterPosition = D3DXVECTOR3:new(0,0,0)
  15. Emitter.EmitterDirection = D3DXVECTOR3:new(0,0,0)
  16. Emitter.EmitterLifeTime = 1
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. PT = Emitter.ParticleTypesParams[1]
  45. PT.IsEmitterLocked = false
  46. PT.DrawOrder = 2
  47. PT.Material = ENMAT_PARTICLE_LIGHT
  48.  
  49.  
  50. PT.TextureName = "submarine_effect_tracesmoke.dds"
  51.  
  52. PT.ParticlesPerSecond = 30.0;
  53. PT.InitialNumberOfParticles = 0.0;
  54. PT.BaseLifeTime = 0.6;
  55. PT.BaseLifeTimeVariance = 0.0;
  56. PT.BaseSpeed = 0.0;
  57. PT.BaseSpeedVariance = 0.0;
  58.  
  59. PT.TangentSpeed = 0.0;
  60. PT.TangentSpeedVariance = 0.0;
  61. PT.TangentDirection = D3DXVECTOR3:new(1.0,0.0,0.0);
  62. PT.TangentAngleMin = 0.0;
  63. PT.TangentAngleMax = 6.28;
  64. PT.IsTangentDependOnBase = false;
  65.  
  66. PT.BaseAngle = 3.0;
  67. PT.BaseAngleVariance = 5.0;
  68. PT.BaseAngleSpeed = 0.2;
  69. PT.BaseAngleSpeedVariance = 0.3;
  70. PT.BaseAngleSpeedDirection = 0;
  71. PT.BaseDirection = D3DXVECTOR3:new(0.0,0.0,0.0);
  72. PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
  73. PT.BasePosition = D3DXVECTOR3:new(0,0,-10);
  74. PT.BasePositionVariance = D3DXVECTOR3:new(3,3,3);
  75. PT.BaseSize = 6.0;
  76. PT.BaseSizeVariance = 0.2;
  77.  
  78. -- color over time
  79. PT.ColorOverTimeR[1].TimePercent = 0.0;
  80. PT.ColorOverTimeR[1].Value = 0.4;
  81. PT.ColorOverTimeG[1].TimePercent = 0.0;
  82. PT.ColorOverTimeG[1].Value = 0.7;
  83. PT.ColorOverTimeB[1].TimePercent = 0.0;
  84. PT.ColorOverTimeB[1].Value = 1.0;
  85.  
  86. PT.ColorOverTimeR[2].TimePercent = 1.0;
  87. PT.ColorOverTimeR[2].Value = 0.4;
  88. PT.ColorOverTimeG[2].TimePercent = 1.0;
  89. PT.ColorOverTimeG[2].Value = 0.7;
  90. PT.ColorOverTimeB[2].TimePercent = 1.0;
  91. PT.ColorOverTimeB[2].Value = 1.0;
  92.  
  93. -- transparency over time
  94. PT.TransparencyOverTime[1].TimePercent = 0.0;
  95. PT.TransparencyOverTime[1].Value = 0.3;
  96.  
  97. PT.TransparencyOverTime[2].TimePercent = 0.2;
  98. PT.TransparencyOverTime[2].Value = 0.01;
  99.  
  100. PT.TransparencyOverTime[3].TimePercent = 1.0;
  101. PT.TransparencyOverTime[3].Value = 0.0;
  102.  
  103. -- size over time
  104. PT.SizeOverTime[1].TimePercent = 0.0;
  105. PT.SizeOverTime[1].Value = 6.0;
  106.  
  107. PT.SizeOverTime[2].TimePercent = 1.0;
  108. PT.SizeOverTime[2].Value = 10.0;
  109.  
  110. -- Speed over time
  111. PT.SpeedOverTime[1].TimePercent = 0.0;
  112. PT.SpeedOverTime[1].Value = 0.0;
  113.  
  114. PT.SpeedOverTime[2].TimePercent = 0.5;
  115. PT.SpeedOverTime[2].Value = 0.0;
  116.  
  117. PT.SpeedOverTime[3].TimePercent = 1.0;
  118. PT.SpeedOverTime[3].Value = 0.0;
  119.  
  120. -- Tangent Speed over time
  121. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  122. PT.TangentSpeedOverTime[1].Value = 0.0;
  123.  
  124. PT.TangentSpeedOverTime[2].TimePercent = 0.1;
  125. PT.TangentSpeedOverTime[2].Value = 0.0;
  126.  
  127. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  128. PT.TangentSpeedOverTime[3].Value = 0.0;
  129.  
  130.  
  131. -- GravityAcceleration over time
  132. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  133. PT.GravityAccelerationOverTime[1].Value = 0.0;
  134.  
  135. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  136. PT.GravityAccelerationOverTime[2].Value = 0.0;
  137.  
  138. -- AngleSpeed over time
  139. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  140. PT.AngleSpeedOverTime[1].Value = 1.0;
  141.  
  142. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  143. PT.AngleSpeedOverTime[2].Value = 2.0;
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. PT = Emitter.ParticleTypesParams[2]
  164. PT.IsEmitterLocked = false
  165. PT.DrawOrder = 1
  166. PT.Material = ENMAT_SIMPLEPARTICLE
  167.  
  168.  
  169. PT.TextureName = "environment_effect_explosion_smoke1.dds"
  170.  
  171. PT.ParticlesPerSecond = 50.0;
  172. PT.InitialNumberOfParticles = 0.0;
  173. PT.BaseLifeTime = 1.3;
  174. PT.BaseLifeTimeVariance = 0.3;
  175. PT.BaseSpeed = 6.0;
  176. PT.BaseSpeedVariance = 0.7;
  177.  
  178. PT.TangentSpeed = 0.0;
  179. PT.TangentSpeedVariance = 0.0;
  180. PT.TangentDirection = D3DXVECTOR3:new(1.0,0.0,0.0);
  181. PT.TangentAngleMin = 0.0;
  182. PT.TangentAngleMax = 6.28;
  183. PT.IsTangentDependOnBase = false;
  184.  
  185. PT.BaseAngle = 3.0;
  186. PT.BaseAngleVariance = 5.0;
  187. PT.BaseAngleSpeed = 0.2;
  188. PT.BaseAngleSpeedVariance = 0.3;
  189. PT.BaseAngleSpeedDirection = 0;
  190. PT.BaseDirection = D3DXVECTOR3:new(0.0,0.0,-1.0);
  191. PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
  192. PT.BasePosition = D3DXVECTOR3:new(0,0,0);
  193. PT.BasePositionVariance = D3DXVECTOR3:new(3,3,3);
  194. PT.BaseSize = 6.0;
  195. PT.BaseSizeVariance = 0.7;
  196.  
  197. -- color over time
  198. PT.ColorOverTimeR[1].TimePercent = 0.0;
  199. PT.ColorOverTimeR[1].Value = 0.5;
  200. PT.ColorOverTimeG[1].TimePercent = 0.0;
  201. PT.ColorOverTimeG[1].Value = 0.5;
  202. PT.ColorOverTimeB[1].TimePercent = 0.0;
  203. PT.ColorOverTimeB[1].Value = 0.5;
  204.  
  205. PT.ColorOverTimeR[2].TimePercent = 1.0;
  206. PT.ColorOverTimeR[2].Value = 0.5;
  207. PT.ColorOverTimeG[2].TimePercent = 1.0;
  208. PT.ColorOverTimeG[2].Value = 0.5;
  209. PT.ColorOverTimeB[2].TimePercent = 1.0;
  210. PT.ColorOverTimeB[2].Value = 0.5;
  211.  
  212. -- transparency over time
  213. PT.TransparencyOverTime[1].TimePercent = 0.0;
  214. PT.TransparencyOverTime[1].Value = 0.1;
  215.  
  216. PT.TransparencyOverTime[2].TimePercent = 1.0;
  217. PT.TransparencyOverTime[2].Value = 0.0;
  218.  
  219. -- size over time
  220. PT.SizeOverTime[1].TimePercent = 0.0;
  221. PT.SizeOverTime[1].Value = 3.0;
  222.  
  223. PT.SizeOverTime[2].TimePercent = 1.0;
  224. PT.SizeOverTime[2].Value = 8.0;
  225.  
  226. -- Speed over time
  227. PT.SpeedOverTime[1].TimePercent = 0.0;
  228. PT.SpeedOverTime[1].Value = 20.0;
  229.  
  230. PT.SpeedOverTime[2].TimePercent = 1.0;
  231. PT.SpeedOverTime[2].Value = 0.0;
  232.  
  233. -- Tangent Speed over time
  234. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  235. PT.TangentSpeedOverTime[1].Value = 0.0;
  236.  
  237. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  238. PT.TangentSpeedOverTime[2].Value = 0.0;
  239.  
  240.  
  241. -- GravityAcceleration over time
  242. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  243. PT.GravityAccelerationOverTime[1].Value = 0.0;
  244.  
  245. PT.GravityAccelerationOverTime[2].TimePercent = 0.3;
  246. PT.GravityAccelerationOverTime[2].Value = 0.0;
  247.  
  248. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  249. PT.GravityAccelerationOverTime[3].Value = 0.0;
  250.  
  251. -- AngleSpeed over time
  252. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  253. PT.AngleSpeedOverTime[1].Value = 1.5;
  254.  
  255. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  256. PT.AngleSpeedOverTime[2].Value = 0.6;
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271. --
  272. -- end particle system description
  273. --
  274.